<#assign fandPagePath = '/default/admin/configuration/dictionary/edit'>
<!DOCTYPE html>
<html lang="zh-CN">
<head><#include "../../../head_.html">
</head>
<body class="easyui-layout">
	<div data-options="region:'center'" style="padding: 10px;">
		<form action="${fand.webContextUrl!}/admin/configuration/dictionary/save.txt"
			method="post">
			<input type="hidden" name="dictionary.id" value="${(dictionary.id)!}">
			<fieldset>
				<legend>基本数据</legend>
				<table>
					<tr>
						<td><label for="dictionary.siteId">站点：</label></td>
						<td><select id="dictionary.siteId" name="dictionary.siteId"><#list
								siteList as siteRow> <#if (siteRow.id!) == (dictionary.siteId!)>
								<option value="${siteRow.id!}" label="${siteRow.name!}"
									selected="selected"><#else>
								<option value="${siteRow.id!}" label="${siteRow.name!}">
									</#if> </#list>
						</select></td>
					</tr>
					<tr>
						<td><label for="dictionary.code">编号：</label></td>
						<td><input type="text" name="dictionary.code"
							id="dictionary.code" class="easyui-validatebox"
							placeholder="请输入编号…" data-options="required:true"
							validType="remote['${fand.webContextUrl!}/admin/configuration/dictionary/validationByCode.json?dictionary.id=${(dictionary.id)!}', 'dictionary.code']"
							maxlength="128" value="${dictionary.code!}"></td>
					</tr>
					<tr>
						<td><label for="dictionary.name">名称：</label></td>
						<td><input type="text" name="dictionary.name"
							id="dictionary.name" placeholder="请输入名称…"
							class="easyui-validatebox" data-options="required:true"
							maxlength="128" value="${dictionary.name!}"></td>
					</tr>
					<tr>
						<td><label for="dictionary.orderNum">排序号：</label></td>
						<td><input type="text" name="dictionary.orderNum"
							id="dictionary.orderNum" class="easyui-numberbox"
							data-options="min:1,max:9999" value="${dictionary.orderNum!}"></td>
					</tr>
				</table>
			</fieldset>
			<fieldset>
				<legend>
					配置多语言<input type="checkbox" name="dictionary.configurationLanguage"
						value="true">
				</legend>
			</fieldset>
		</form>
	</div>
	<div data-options="region:'south',border:false"
		style="text-align: right;; padding: 5px 0 0; height: 32px;">
		<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'"
			href="#ok">提交</a> <a class="easyui-linkbutton"
			data-options="iconCls:'icon-mini-refresh'" href="#reset">重置</a> <a
			class="easyui-linkbutton" data-options="iconCls:'icon-back'"
			href="#back">返回</a>
	</div>
</body>
</html>